package com.youlu.campus.monitor.repositories;

import com.youlu.campus.monitor.entity.WechatQuestion;
import org.springframework.data.mongodb.repository.MongoRepository;

/**
 * 微信问题数据访问层
 * 继承MongoRepository实现基础CRUD，适配单条数据场景
 *
 * @author su
 * @date 2025/09/02
 */
public interface WechatQuestionRepository extends MongoRepository<WechatQuestion, String> {

    /**
     * 根据微信监控id删除微信问题
     *
     * @param monitorId 微信监控id
     * @return 删除数量
     */
    int deleteByMonitorId(String monitorId);
}
